package com.lingdian.study;

import com.lingdian.study.aop.RestException;

public class TakingTrainImpl implements TakingTrain{
	public void takeTrain(String name) throws RestException {
		if(name==null){
			throw new RestException();
		}
        System.out.println("Hi "+name+ " Welcome to take the train");
    }

	@Override
	public void customSerive(String name) {
		System.out.println("Hi, "+name+" ,may i help you?");
		
	}
}
